package org.example.restful.service;

import org.example.restful.bean.Employee;

import java.util.List;

public interface EmployeeService {
    Employee getEmp(Long id);

    /*
     添加员工
     */
    void saveEmp(Employee  employee);

    /*
     修改员工
     */
    void updateEmp(Employee  employee);

    /*
     按照id删除员工
     */
    void deleteEmp(Long id);

    List<Employee> getEmployees();
}
